

package com.maoshi.shop.seckill.platform.task;

import com.maoshi.shop.seckill.comment.service.SeckillOrderService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;


/**
 * 秒杀订单的定时任务
 * @author LGH
 */
@Component("seckillOrderTask")
@AllArgsConstructor
public class SeckillOrderTask {

    private final SeckillOrderService seckillOrderService;

    /**
     * 取消订单
     */
    public void cancelOrder(){
        seckillOrderService.cancelOrderUnpayOrderByTime();
    }


}
